// API 响应的基础接口
export interface ApiResponse<T = unknown> {
  success: boolean;
  data?: T;
  message?: string;
  code?: string;
}

// 认证相关接口
export interface LoginCredentials {
  username: string;
  password: string;
}

export interface LoginResponseData {
  token: string;
  user: {
    id: string;
    username: string;
  };
}

export interface VerifyResponseData {
  user: {
    id: string;
    username: string;
  };
}

// 管理员相关接口
export interface DashboardStats {
  users: number;
  posts: number;
  comments: number;
}

export interface UserInfo {
  id: number;
  username: string;
}

export interface AdminDashboardData {
  stats: DashboardStats;
}

export interface AdminUsersData {
  users: UserInfo[];
} 